<script setup lang="ts">
var user = { name: "张三", age: 18, gender: "男" };
</script>

<template>
  <div v-for="v in user">{{ v }}</div>
  <hr></hr>
  <div v-for="(v,k) in user">{{ k }} - {{ v }}</div>
  <hr></hr>
  <div v-for="(v,k,i) in user">{{ i }} - {{ k }} - {{ v }}</div>
</template>
